package com.hundsun.cprs.yyt.service.classify.enums;

import java.util.HashMap;
import java.util.Map;

public enum ClassifyTypeEnum {

	ONE_CLASSIFY_TYPE(0, "一级类目 "),
	TWO_CLASSIFY_TYPE(1, "二级类目 ");
	
	//0：一级目录  1:二级目录
	private Integer code;
	
	//0：一级目录  1:二级目录
	private String Type;

	
	private ClassifyTypeEnum(Integer code, String type) {
		this.code = code;
		Type = type;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getType() {
		return Type;
	}

	public void setType(String type) {
		Type = type;
	}
	
	 public static Map<Integer, String> toMap() {
	        Map<Integer, String> map = new HashMap<Integer, String>();
	        for (ClassifyTypeEnum record : values()) {
	            map.put(record.getCode(), record.getType());
	        }
	        return map;
	    }
}
